const Mock = require("mockjs")
const data = Mock.mock({
    //生成模拟数据(DTP占位符)
    "empList|6":[
        {
            "id|+1":1,
            "name":"cname", //"@string", 生成中文名字
            "pirce":"@float",
            "status":"@boolean",
            "birthday":"@date(yyyy/MM/dd)",
            "createTime":"@datetime(yyyy/MM/dd HH:mm:ss)",
            "pic":"@image('200x100', '#50B347', '#FFF', 'Mock.js')",
            "title":"@title",
            "ctitle":"@ctitle",
            "content":"@csentence(100,500)",
            "cfirst":"@cfirst",  //姓
            "clast":"@clast", //名
            "url":"@url(http,ardai)", //生成路由
            "domin":"@domin", //生成域名
            "ip":"@ip",  //生成ip
            "area":"@region", //区域
            "address":"@county(true)", //地址
            "zipCode":"@zip",  //生成邮政编码
            "phone|11":"@integer(0,9)", //生成电话号码
        }
    ],
})
console.log(JSON.stringify(data,null,2));